home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / print / masdir54.arj / SDLFINIS.BAT < prev    next >
DOS Batch File  |  1991-02-15  |  2KB  |  65 lines

  1. ECHO Off
  2. IF NOT .%3 == . GOTO PARMSOK
  3. ECHO Please start the setup program by running SDLSETUP.
  4. GOTO QUIT
  5. :PARMSOK
  6. Echo * * *
  7. :TITLE ... now another check on the SDL version to avoid problems.
  8. IF NOT .%1 == .54 GOTO VERSION
  9. IF NOT .%2 == .55 GOTO VERSION
  10. sdl_get B
  11. ECHO * * *
  12. ECHO This is the last section:
  13. ECHO * * *
  14. ECHO You may enter your own titles on the first two header lines,
  15. ECHO or restore the original lines.  These titles will display or not
  16. ECHO depending on the Hdr default setting.  They can be toggled on
  17. ECHO or off with the /H option.  If you have changed the titles and
  18. ECHO want to restore the original, select Y.  Changed or restored
  19. ECHO titles do not have the highlighted capital letters.
  20. ECHO * * *
  21. sdl_get N "Do you want to change the titles (N,y,cr)? "
  22. if errorlevel 90 SDLDEBUG
  23. if NOT errorlevel 89 SDLDEBUG
  24. :REM Better make another check on SDL Version (see REM below).
  25. SDL /!
  26. IF NOT ERRORLEVEL %1 GOTO VERSION
  27. IF ERRORLEVEL %2 GOTO VERSION
  28. REM Check the size of SDL.COM
  29. sdl_get F SDL.COM
  30. IF NOT ERRORLEVEL 1 GOTO :SIZEOK
  31. REM The size must match what is passed in %3, else version is incorrect.
  32. IF NOT .%3 == .%GET% GOTO VERSION
  33. :SIZEOK But we must have the following file...
  34. IF NOT EXIST SDLTITLE.COM GOTO NOTITLE
  35. ECHO * * *
  36. ECHO Your two title lines are now...
  37. SDL /H-/C-
  38. ECHO To restore the original titles, simply press ENTER at each prompt.
  39. SDLTITLE
  40. REM Positive errorlevel means SDLTITLE did not work for some reason.
  41. IF ERRORLEVEL 1 GOTO NOTITLE
  42. ECHO N SDLTITLE.TXT>>SDLSETUP.TXT
  43. ECHO L 103>>SDLSETUP.TXT
  44. ECHO N SDL.COM>>SDLSETUP.TXT
  45. ECHO R CX>>SDLSETUP.TXT
  46. :REM The value in the next line is critical to the SDL Version!
  47. ECHO %3>>SDLSETUP.TXT
  48. :END
  49. SDLDEBUG
  50. REM BATch commands end here, the rest are error messages.
  51. :NOTITLE
  52. ECHO The file SDLTITLE.COM was not found or did not complete properly.
  53. Echo If you want to customize the titles in SDL.COM you must copy
  54. Echo SDLTITLE.COM from the original MASDIR disk and run SDLSETUP again.
  55. GOTO END
  56. :VERSION
  57. ECHO The version of SDL is incompatible with this version of SDLSETUP.
  58. Echo Please copy compatible versions from your original disk and try again.
  59. :QUIT
  60. pause
  61. IF EXIST SDLSETUP.TXT ERASE SDLSETUP.TXT
  62. if exist menu.bat menu
  63. SET GET=
  64. ECHO Exiting to DOS ...
  65.